
import 'package:bloc/bloc.dart';
import 'package:u9mobile/models/template.dart';

import '../repositories/template_repository.dart';


class TemplateBloc extends Cubit<Template>{
  final TemplateRepository templateRepository=TemplateRepository();
  TemplateBloc():super(Template(null,null));
  Future<void> fetch() async {
    Template result=await templateRepository.fetchTemplate();
    emit(result);
  }
}